<ion-view view-title="添加银行卡">
    <ion-content class="content has-header ionic-pseudo">
        <!-- <div class="head-info padding size-14" ng-if="!isauth">
            <div class="padding-left padding-right size-14">为了交易安全,您需要先进行实名认证</div>
        </div> -->
        <div class="head-info padding size-14" >
            <div class="padding-left padding-right size-14">请添加持卡人本人的银行卡</div>
        </div>
        <div class="list" ng-if="isauth">
            <label class="item item-input item-icon-right" ng-click="backbankname()" nav-direction="forward">
                <span class="input-label">银行名称</span>
                {{card.bankName}}<i class="icon ion-ios-arrow-right"></i>
            </label>
            <label class="item item-input">
                <span class="input-label">银行卡号</span>
                <!-- <input type="text" placeholder="请填写银行卡号" ng-model="card.cardNumber" ng-blur="getBankName()"> -->
                <input class="number" type="text" class="" placeholder="请填写银行卡号" ng-model="card.cardNumbershow" ng-keyup="replace()" ng-blur="getBankName()">
            </label><!-- 
            <label class="item item-input">
                <span class="input-label">银行名称</span>
                <input class="number" type="text" placeholder="自动填写" ng-model="card.bankName" readonly="readonly">
            </label> -->
            <label class="item item-input">
                <span class="input-label">持卡人</span>
                <a>{{realname}}</a>
            </label>
            <label class="item item-input">
                <span class="input-label">身份证</span>
                <a>{{idNumber}}</a>
            </label>
            <label class="item item-input">
                <span class="input-label">手机号</span>
                <a>{{phoneNumber}}</a>
            </label>
            <!-- <label class="item item-input">
                <span class="input-label">真实姓名</span>
                <input type="text" placeholder="请填写真实姓名" ng-model="card.realname">
            </label>



            <label class="item item-input">
                <span class="input-label">预留手机号</span>
                <input type="text" placeholder="请填写预留手机号" ng-model="card.phoneNumber">
            </label> -->
        </div>
        <div ng-if="!isauth">
            <label class="item item-input item-icon-right" ng-click="backbankname()" nav-direction="forward">
                <span class="input-label">银行名称</span>
                <a ng-if="!card.bankName">请选择</a><a ng-if="card.bankName">{{card.bankName}}</a><i class="icon ion-ios-arrow-right"></i>
            </label>
            <label class="item item-input">
                <span class="input-label">银行卡号</span>
                <!-- <input type="text" placeholder="请填写银行卡号" ng-model="card.cardNumber" ng-blur="getBankName()"> -->
                <input class="number" type="text" class="" placeholder="请填写银行卡号" ng-model="card.cardNumbershow" ng-keyup="replace()" ng-blur="getBankName()">
            </label><!-- 
            <label class="item item-input">
                <span class="input-label">银行名称</span>
                <input class="number" type="text" placeholder="自动填写" ng-model="card.bankName" readonly="readonly">
            </label> -->
            <div class="head-info padding size-14">
                首次添加银行卡需要填写实名认证信息
            </div>
           <label class="item item-input">
                <span class="input-label">持卡人</span>
                <!-- <a>{{realname}}</a> -->
                <input class="number" type="text" placeholder="请填写持卡人姓名" ng-model="card.realname">
            </label>
            <label class="item item-input">
                <span class="input-label">身份证</span>
                <input class="number" type="text" placeholder="请填写身份证号" ng-model="card.idNumber">
            </label>
            <label class="item item-input">
                <span class="input-label">手机号</span>
                <input class="number" type="text" placeholder="请填写银行预留手机号" ng-model="card.phoneNumber" ng-keyup="isValidPhone()">
            </label>
            <div class="item item-input item-button-right">
                <span class="input-label">验证码</span>
                <input class="number" type="text" placeholder="请输入验证码" ng-model='card.validateCode' >
                <button class="button button-small button-stable buttongetcode" ng-click="sendCode()" ng-disabled="fetchButton" ng-model="fetchButton">{{buttonText}}</button>
            </div>
        </div><br>
        <button class="button button-full button-positive" ng-click="confirm_addCard()">确认添加
        </button>
     
    </ion-content>
</ion-view>
<!--             <label class="item item-input">
                <span class="input-label">开户省份</span>
                <span style="color:#797d80">请选择省份</span>
                <a class="item-icon-right" href="#">
                    <i class="icon ion-ios-arrow-right"></i>
                </a>
            </label>

            <label class="item item-input">
                <span class="input-label">开户城市</span>
                <span style="color:#797d80">请选择城市</span>
                <a class="item-icon-right" href="#">
                    <i class="icon ion-ios-arrow-right"></i>
                </a>
            </label> -->